package com.jdd.modules.system.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 白名单
 * @Author: jdd
 * @Date:   2021-02-18
 * @Version: V1.0
 */
@Data
@TableName("park_white_list")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="park_white_list对象", description="白名单")
public class ParkWhiteListVO {


		/**主键**/
		@TableId(type = IdType.ID_WORKER_STR)
		@ApiModelProperty(value = "主键")
		private String id;
		/**车牌号*/
		@Excel(name = "车牌号", width = 15)
		@ApiModelProperty(value = "车牌号")
		private String plateNo;
		/**停车场编号*/
		@ApiModelProperty(value = "停车场编号")
		private String parkCode;
		/**停车场名称*/
		@ApiModelProperty(value = "停车场名称")
		private String parkName;
		/**是否是白名单（1：白名单，2:黑名单）*/
		@ApiModelProperty(value = "是否是白名单（1：白名单，2:黑名单）")
		private Integer licenseType;
		/**状态(Y:启用,N:冻结)*/
		@ApiModelProperty(value = "状态(Y:启用,N:冻结)")
		private String status;
		/**有效期开始时间*/
		@Excel(name = "有效期开始时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
		@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
		@ApiModelProperty(value = "有效期开始时间")
		private Date startTime;
		/**有效期结束时间*/

		@Excel(name = "有效期结束时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
		@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss ")
		@ApiModelProperty(value = "有效期结束时间")
		private Date endTime;
		@Excel(name = "有效期开始时间", width = 15)
		@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss ")
		@ApiModelProperty(value = "有效期开始时间")
		private Date startDayTime;
		@Excel(name = "有效期结束时间", width = 15)
		@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss ")
		@ApiModelProperty(value = "有效期结束时间")
		private Date endDayTime;
		/**客户姓名*/
		@Excel(name = "客户姓名", width = 15)
		@ApiModelProperty(value = "客户姓名")
		private String userName;
		/**客户手机号码*/
		@Excel(name = "客户手机号码", width = 15)
		@ApiModelProperty(value = "客户手机号码")
		private String mobile;

		/**家庭住址*/
		@Excel(name = "家庭住址", width = 15)
		@ApiModelProperty(value = "家庭住址")
		private String address;
		/**创建时间*/
		@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
		@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		@ApiModelProperty(value = "创建时间")
		private Date createTime;
		/**修改时间*/
		@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
		@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		@ApiModelProperty(value = "修改时间")
		private Date updateTime;
		/**创建人*/
		@Excel(name = "创建人", width = 15)
		@ApiModelProperty(value = "创建人")
		private String createUser;
		/**车辆备注*/
		@Excel(name = "车辆备注", width = 15)
		@ApiModelProperty(value = "车辆备注")
		private String remark;
		/**车辆备注*/
		@Excel(name = "是否永久", width = 15)
		@ApiModelProperty(value = "是否永久")
		private String isForever;
		/**周几算白名单*/
		@Excel(name = "周几算白名单", width = 15)
		@ApiModelProperty(value = "周几算白名单")
		private String weekDay;


		// 消息id
		@TableField(exist = false)
		private String messageId;
	}

